﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Text;
using MySkiPatrolEntity;
using System.Reflection;
using MySkiPatrolBLL;

namespace MySkiPatrolWS
{
    // NOTE: You can use the "Rename" command on the "Refactor" menu to change the class name "SignIn" in code, svc and config file together.
    public class SignIn : ISignIn
    {
        private SignInBLO BLO = new SignInBLO();

        public string Version()
        {
            return Assembly.GetExecutingAssembly().GetName().Version.ToString();
        }

        public List<ValueKeyPair> GetAppSettings(Patrol data)
        {
            return BLO.GetAppSettings(data);
        }

        public ScanResponse EmployeeIDScan(ScanRequest data)
        {
            return BLO.ProcessScan(data);
        }

        public void EmployeeSignOut(ScanResponse data)
        {
            BLO.EmployeeSignOut(data);
        }

        public List<ScanResponse> GetDialySignins(Patrol data)
        {
            return BLO.GetDailySignins(data);
        }

        public void CloseDailySignins(ScanRequest data)
        {
            BLO.CloseDailySignins(data);
        }

        public List<Member> GetEmployeesWithNoID(Patrol data)
        {
            return BLO.GetMembersWithNoID(data);
        }

        public List<ScanResponse> AssignIDCardToMember(ScanResponse data)
        {
            return BLO.AssignIDCardToMember(data);
        }
    }
}
